package com.fate.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fate.framework.handler.ListTypeHandler;
import lombok.Data;

/** 审批申请表 @TableName gov_approval */
@TableName(value = "gov_approval")
@Data
public class Approval implements Serializable {
  /** */
  @TableId private String id;

  /** 是否删除 */
  @TableLogic private Integer deleted;

  /** 创建时间 */
  private LocalDateTime gmtCreate;

  /** 修改时间 */
  private LocalDateTime gmtModified;

  /** 租户id */
  private String tenantId;

  /** 客户id */
  private String clientId;

  /** 设备id */
  private String equipmentId;

  /** 普通用户id */
  private String normalId;

  /** 审批类型【1退款】 */
  private Integer type;

  /** 操作人id */
  private String operatorId;

  /** 操作时间 */
  private LocalDateTime operationTime;

  /** 订单id */
  private String orderFormId;

  /** 流程实例id */
  private Long instanceId;

  /** 审批状态【1未审批 2已通过 3已驳回】 */
  private Integer status;
  /**
   * 照片【数组】
   */
  @TableField(value = "picture", typeHandler = ListTypeHandler.class)
  private List<String> picture;
  /**
   * 内容
   */
  @TableField(value = "content")
  private String content;

  @TableField(value = "approval_message")
  private String approvalMessage;

  @Serial
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}
